Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Rotate-About-Axis Data Structure

You can use an rotate-about-axis transform data structure to specify a rotate transform about an arbitrary axis in space at an arbitrary point in space. The rotate-about-axis transform data structure is defined by the TQ3RotateAboutAxisTransformData data type.

typedef struct TQ3RotateAboutAxisTransformData {
    TQ3Point3D                          origin;
    TQ3Vector3D                         orientation;
    float                               radians;
} TQ3RotateAboutAxisTransformData;
origin
The origin of the axis of rotation.
orientation
The orientation of the axis of rotation. This vector must be normalized or the results will be unpredictable.
radians
The number of radians to rotate around the axis of rotation.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |